﻿<Window x:Class="AutoUpgradeManager.ControlForm.Window_FolderBrowser"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="文件夹浏览器" 
        Style="{DynamicResource NoneBorderWindow}" 
        Height="360" 
        Width="341"
        WindowStartupLocation="CenterScreen">
    <DockPanel LastChildFill="True">
        <StackPanel DockPanel.Dock="Top" Margin="5" Grid.Row="0">
        <TextBlock Margin="0,0,0,3" Foreground="{StaticResource TextBrush}" Text="当前选中的文件夹是："/>
        <TextBlock Name="Txt_Dir" Margin="0,0,0,5" Foreground="{StaticResource TextBrush}" Text="{Binding ElementName=tView,Path=SelectedItem.Tag.FullName}" TextWrapping="Wrap"/>
        </StackPanel>
        <DockPanel DockPanel.Dock="Bottom" Height="32" Margin="5"  LastChildFill="False">
            <Button Click="Btn_Close_Click" Name="Btn_Close" Height="24" DockPanel.Dock="Right" Margin="5,0,0,0" Padding="25,3" Content="关 闭"/>
            <Button Click="Btn_OK_Click" Name="Btn_OK" Height="24" DockPanel.Dock="Right" Margin="0" Padding="25,3" Content="确 认"/>
        </DockPanel>
        <TreeView VirtualizingStackPanel.IsVirtualizing="True" TreeViewItem.Collapsed="tView_Collapsed" TreeViewItem.Expanded="tView_Expanded" DockPanel.Dock="Top" Name="tView" Margin="5,0,5,0" Grid.Row="1" ItemTemplate="{Binding}"/>
    </DockPanel>
</Window>
